<?php
namespace app\index\controller;

use app\index\model\Wxuser;
use think\Controller;

/**
*  前台基类
*/
class Base extends Controller
{
	
	public function _initialize()
	{
		session('uid',11);
//		$this->openid = 'oxjZG1Svckge--VJFkYL_-ReUhwY';
		//if(!session('uid')){
			//$this->redirect("Login/wechat");
		//}
		//$this->openid = Wxuser::where("uid",session('uid'))->field("openid")->find()['openid'];

	}

}